package com.example.iorder.util;

import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.iorder.R;

public class MessageManager {
	public static View getMessageView(LayoutInflater inflater, Drawable image, String message) {
		View layout = inflater.inflate(R.layout.reservation_req_message, null);
		ImageView imageView = (ImageView) layout.findViewById(R.id.result_image);
		TextView messageView = (TextView) layout.findViewById(R.id.result_message);
		
		imageView.setImageDrawable(image);
		messageView.setText(message);
		return layout;
	}
}
